xen/arm: cpufeature: Provide an helper to check if a capability is supported
authorJulien Grall <julien.grall@arm.com>
Wed, 27 Jul 2016 16:37:06 +0000 (17:37 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 3 Aug 2016 19:47:06 +0000 (15:47 -0400)
commit64eb606000f1258267f27e6819c59848e2226773
tree1f0351a5f3850798f1af6f8e4384f87b4555dc96
parent8c044700cd5205696d88d365c41c77583498f58c
xen/arm: cpufeature: Provide an helper to check if a capability is supported

The CPU capabilities will be set depending on the value found in the CPU
registers. This patch provides a generic to go through a set of capabilities
and find which one should be enabled.

The parameter "info" is used to display the kind of capability updated (e.g
workaround, feature...).

Signed-off-by: Julien Grall <julien.grall@arm.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
xen/arch/arm/cpufeature.c
xen/include/asm-arm/cpufeature.h